Wait for async processing to finish

Fixes some files not being converted. For instance I observed a '.png' file that was not actually processed.