Added pauseonerror, exitonerror, catch script error