Modified the sys.exit() statements to return 1 to the shell to indicate failure.
Authored by: bugman 2006-08-15
Parent: [r2536]
Child: [r2538]