emit error for disconnected socket
emit error from channel