add ability to veto a close event