Force error if socket is closed
Add detection for dead connections and auto remove