[unix] Proper way to exit command line program?