Fixed typo errors.
Updated isAvrdudeRunning flag and added callbak in doflash when unknown exception is thrown.