Added graceful shutdown on SIGHUP

There should probably be a test that asserts that the server actually *was* shut down gracefully.  The above test just asserts that the server shut down, but it doesn't check that it got shut down gracefully.  One way to do so would be to check the logger output from the server, although I'm not entirely sure how to do that from outside; it would be require a bit of fooling around.