Wait for async threads before freeing/killing IO buffers