Some other changes for pushing the error to script_task.