check if do_not_run file exists before trying to write it and moved serial close code to just before leonardo reset
Merge branch 'hotfix/program-script-fix' into develop