fix: debug mode correctly deletes temporary files