Bug #2263: export LC_ALL and LANG and set -e for all the required remote scripts (ssh_monitor_and_log and ssh_exec_and_log)
(cherry picked from commit 94b3245caf38af7d7bc6a42bc59fcdd95a5f6d3f)