Cancel the migration if there's an error in the middle