Added ability to shutdown server, untested.