Added some error checking to wakeUpAndRun.sh