Hook up SIGINT/SIGTERM to attempt a clean shutdown.
Load the private key only once.