test_connect_fd_leak: do not close socket if non-existent