private void sessionManager_SessionEnded(object sender, EventArgs e) { if (handHandler != null) { handHandler.Dispose(); handHandler = null; } if (SessionEnded != null) { SessionEnded(sender, e); } }