Compile should stop when an error happens while compiling. And we definitely need more work here