Cleanup of old temporary files

If check_multi times out and has to be killed the hard way, it may
leave temporary files, which need to be cleaned up in order to
avoid disk fillup.

Thanks to Udo Hillenbrand for the report.