It looks like the tce-load has been broken because I think this used to work properly...
To reproduce:
tce-load -wi nonexistent
echo $?
From a cursory look, the "exit 1" in the abort_to_saved_dir function is being subverted by some code at the end of the script.
Cheers,
Dave