exit process when error exception occur