Cancellable onClosing event