made failToCompile to intercept all the exceptions