When "core:close", close window if no files/panes open