Add exception handler, and fix some error prompt message