Move Socket creation towards the Registry itself and don't pass along the error. If an error is reached, it will now properly destroy itself. (Error was occurring with ConnectExceptions)