[[ Bug 12451 ]] Added 'windowCancel' event to handle popup window cancellation.