better exit code handling and more relaxed check of entropy calc