[GH-89] ensure close button invokes onEscape callback