As for some other popup-based widgets, you can set the popover to close automatically upon some events.

In the following examples, they will all close on Escape as well as: