die instead of exiting with implict 0 which is wrong
exit( EXIT_FAILURE ) is better than exit(0) if one wants to detect failing stuff :)