Wait for the server to shutdown before run tests.