Fix send_msg event with reboot by OK button (issue #3643)