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

We already do this for the SIGINT kill signal. The change allows us to also do a clean shutdown of PyBitmessage when its process has been separated from the terminal. Otherwise, an attempt to stop the PyBitmessage process simply terminates it, and we lose any data not already written to disk.