Removing reopening of sockets