In the case of ELF to UF2 conversion failure in deploy mode, the error in conversion will be masked by an error in the cleanup processing. This adds a check and caches the path of the deployed file, and cleans up that file instead, still passing the error.
In the case of ELF to UF2 conversion failure in deploy mode, the error in conversion will be masked by an error in the cleanup processing. This adds a check and caches the path of the deployed file, and cleans up that file instead, still passing the error.