Tuned custom error handling.