handle dead clients
Merge pull request #86 from alama/undead-check

handle dead clients