Added ability to stop server