Add method for stopping the server