code: def send_exception(self):
          
          self.compiler.reset()
  
          exc = traceback.format_exc()
          self.writer.write(exc.encode('utf8'))
  
          yield from self.writer.drain()
docs: When an exception has occurred, write the traceback to the user.