Added ability to stop server connection.
Added ability to stop server connection.