The pop is probably because the song ended on a very high sample, and then became suddenly 0. This causes a 'pop' noise. Try fading the song out over the course of even 0.01 of a second.
The pop from going from high sample to 0 volume sounds like this: https://soundcloud.com/hertzdevil/dirac