Fixes problem where the master was not waiting for the last results to return.