BuildManager should return failure code when compilation fails