fixed bug with multiprocess queue not waiting for all children to complete