If a compose was interrupted by restarting osbuild-composer it should be set to failed at startup. This was not working because imgBuild is a temporary variable, the value stored in ImageBuild needs to be modified directly.