[m17n] implement switch im close event for m17n