Fixed closing a connection

The inner connection should be unreferenced, but the property should not be removed from the object