don't try to get csrf when not running with params
print errors at the end of the script run instead of stopping the job