https://stackoverflow.com/questions/9944785/what-is-the-difference-between-exit0-and-exit1-in-c/9944875#:~:text=exit(0)%20usually%20indicates%20that,that%20something%20has%20gone%20amiss.&text=exit()%20should%20always%20be,are%20used%20as%20error%20codes.&text=exit(0)%20means%20Program(,Process)%20terminate%20normally%20successfully..
exit(0) usually indicates that all is well, whilst exit(1) indicates that something has gone amiss.