Make sure to close the sockmonitor sockets when resetting connections