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.