Add general error handler for dashboard route, and clean up. @lukemelia / @kselden