Popup close can be canceled in close event