Delete TIO once they are out of scope during a scan

Otherwise the TIO will be deleted once they the library scanner finishes
and we potentially freeze machines for large libraries
Merge pull request #377 from kain88-de/memory-leak

Memory "Leak" during library scan