add example of rejecting close event