Issue #3
Now scripts can set `error' variable to sendout their errors.