Biomass pellets cooling