Wait spawn processes correctly