prevent nasty SockedClosed Exceptions during test runs