code tidyup
Ensure that even if the console.log fails (because process doesn't exist), we still echo(1)
make flasher more error tolerant
More tidying