A destroyed modal can not get the focus.

`lastOpenedModal` is reset when destroying without closing

[Fixes #11 and #12]