Merge "Avoid sending an IME close request if the IME is already closed." into main