Handle signals for graceful shutdowns.
Documentation about USR2
Note around sending USR2 twice.