[PATCH] qemu_migration: Unregister close callback only if connection still exists