fix exception checking and the awful cancel bug
Merge branch 'master' of https://github.com/ruarai/CompilePal.git