Checking for isDead() at a more reasonable location.

Signed-off-by: fr1zle <f@br0tbox.de>
Merge pull request #495 from fr1zle/master

Checking for isDead() at a more reasonable location.