Better error handling for loadDashboard