Use EM::Connection#unbind on the wrapped rack.hijack_io object to detect TCP disconnects.