exit(1) instead of exit()

Terminating the script after handling an exception should return error exit status to the caller of the script.