Since the program is exiting in response to an error, you should make sure you're sending a non-zero exit status.