if no tabs or no apps are open, throw error