Fix double start bugs that provoked Zombie process

I can't reproduce the bug, but the folliowing code should do the job.