private void sendInternalEncodingFailedMessage(ChannelHandlerContext ctx, InetSocketAddress remoteEndpoint,
int messageID, Token token, Throwable cause){
MiscellaneousErrorEvent event = new MiscellaneousErrorEvent(remoteEndpoint, messageID, token,
cause.getMessage());
Channels.fireMessageReceived(ctx, event);
}