Fix memory leaks on large imports

GC.start after consecutive batch imports causes a memory leak. While importing 6 million records, the stack grew from 200mb to ~5GB. This fixes that issue.