prawnsalad/KiwiIRC — pull request #622 by M2Ys4U (2014-11-19 05:43:55+00:00)
Title: Shut down more gracefully.

When we receive SIGTERM, close the listening sockets, send a `QUIT` message to each IRC server we're connected to, notify each client that we're shutting down with a `shutdown` kiwicommand and then disconnect each client before `exit`ing the process.