isolate tests by ensuring that connect.close attempts to call