Making sure that pid is alive when checking workers' status