programs/*.c : More exit code fixes.

Patch-from: Jan Stary <hans@stare.cz>