Added code to stop server when client dissconnects.