core: free main loop data in parallel