If there were errors during codegen, exit before trying to emit object files