private void WriteException(IInputContext context, Exception exception, IHostAddress clientHostAddress) { var exceptionMessage = new ExceptionMessage(clientHostAddress, FaultException.Create(exception)); context.Write(exceptionMessage.ToFrame()); }