Ensure Event handlers are remove on dispoosal of SyntaxMode