revert grant option in failure hook