added BeginDeath() in else condition in WaitForDeath()