fixing the server exit command