code: static BOSHClientConnEvent createConnectionClosedOnErrorEvent(
              final BOSHClient source,
              final List<ComposableBody> outstanding,
              final Throwable cause) {
          return new BOSHClientConnEvent(source, false, outstanding, cause);
      }
docs: Creates a connection closed on error event.  This represents
  an unexpected termination of the client session.
  
  @param source client which has been disconnected
  @param outstanding list of requests which may not have been received
  by the remote connection manager
  @param cause cause of termination
  @return event instance