Ensuring rollback is called when migrations fail.