dealing with orphaned connections / references