fixin up socket closing on failtoconnect