Catch the standard Unix SIGTERM kill signal and do a graceful shutdown.

We already do a clean shutdown for the SIGINT kill signal, but this allows
us to shut down PyBitmessage cleanly when its process has been separated from
the terminal.