Cleaner method of handling NPEs when cancelling the event.