public override void Deactivate(Thread thread) { if (handle != null) { handle.Remove (thread); handle = null; } }