Properly close the test server