Added ability to stop the server