protected override void OnClose(TimeSpan timeout)
 {
     if (security_initiator != null)
     {
         security_initiator.Release();
     }
     else
     {
         security_recipient.Release();
     }
     channel.Close(timeout);
 }
 void ReleaseSecurityKey(object o, EventArgs e)
 {
     security.Release();
 }