Added some more error checking to AbstractCompiler.