Improve exception process

Signed-off-by: leo-ma <begeekmyfriend@gmail.com>