mIRC should at least try to delete these files at start-up.
That opens up a slippery slope bag of worms. For starters, they might belong to a different second instance of mIRC. Or they might be purpose created by a script for cross-session OnExit/OnStart use, via $tempfn identifier. If mIRC is going to start deleting them willy nilly, then we must eliminate $tempfn from public use.