Memory leak fix

When the document is closed will invoked a Dispose. After, a few times will invoked SuspendFocusTracking and ResumeFocusTracking. At the end of the ResumeFocusTracking subscribes to an event sm_localWindowsHook.HookInvoked.