wmc: Clean output files when aborting on an error or signal.