Refactored facade error handling in backend.