To avoid an inconsistent state of `project.info` in case of an error exit.