Ensure Event handlers are remove on dispoosal of SyntaxMode
Merge pull request #731 from 7sharp9/EnsureEventHandlerDisposalForSyntaxMode

Ensure Event handlers are remove on disposal of SyntaxMode