Fix InlineTextEditor close event handling and event handler removal.
code review comments