Make sure we write out the files before failing the build!