add throwble check each place to make sure pig script running error can be invoked