patched bugs for orphaned connections