Removed unnecessary Code
Added Dead handling within writing to client