Fixed messages of exceptions in CustomHandlersPass