Handle exit message from window manager on Linux