fix for server not being cleaned up after a test run