Enable close and run quest actions depending on the situation.