Add error handling for routing errors