[BUG #7097] refine global error handling usage