add trap to remove temp dir in list_primary_fingerprints function