Clear on-commit hooks even if one raises an exception. Thanks akaariai.