catching AlreadyClosedException when channel is closed