TODO: Another spot for that global error handler