fix: dont throw an exception when using keyboard shortcuts after closing a window
fix: dont throw an exception when using keyboard shortcuts after closing a window

joshuef/beaker,joshuef/beaker,joshuef/beaker