check process until wait timout *and* break if no more running