added shutdown to Server