added cancel to delayedClose, refactored EscapeAction to DelayedCloseAction