machine startup script: error checking