code: def exit():
          
          exit_msg = None
          try:
              loop = asyncio.get_event_loop()
              loop.stop()
          except Exception as e:
              logging.error('Could not stop loop: %s\nShutting down anyway..',
                            str(e))
docs: shuts down user interface without cleaning up.
          Use a :class:`alot.commands.globals.ExitCommand` for a clean shutdown.