Do not set nil to a socket until it actually disconnects