fn_script_log_fatal
. When you want the script to exit you must use core_exit.sh
rather than just the exit command. core_exit.sh
will then handle the exit and specify the last know exit code. So if the more recent command was fn_script_log_fatal
then the exit code will be 1