master
We already do this for the SIGINT kill signal. The change allows us to do a clean shutdown of PyBitmessage when its process has been separated from the terminal.