Changed behavior on close of NewTask/EventPanel to mimic clicking the `Cancel` button.