private IMessageEnvelope ProcessClose(IDictionary <string, object> metadata)
{
try {
connector.AssertNotDisposed();
connector.AssertAuthenticated();
connector.CloseConnector();
return(connector.CreateEnvelope(metadata, new AcknowledgeResponse(true)));
} catch (Exception ex) {
// TODO: Log the error ...
return(CreateErrorResponse(metadata, ex));
}
}