Change how to store server to shut down in test