migration: Check that migration is active before cancel it