Attempted some graceful shutting down of the server. It doesn't quite
seem to be working though (I still get address in use errors, apparently
the sockets aren't actually closing?)