def stop(self):
        assert self._started
        # XXX which exceptions does this actually raise? EnvironmentError?
        try:
            self._close_connection()
        except Exception:
            pass
        signal.signal(signal.SIGTERM,signal.SIG_DFL)
        self._cleanup_pipe()
        self._started = False
Restore settings and clean up.
dataset/ETHPy150Open AnyMesh/anyMesh-Python/example/urwid/web_display.py/Screen.stop