Close modals on escape

Closes #3016

- Disconnect modal outlet on escape key in closePopups action handler