Not sure if it's worth that much trouble. In correctly written code, xerbla is never called, and not that much code mucks up with low-level lapack functions.