handle jade exceptions more gracefully