Take out fclose on early return since it was only there for when
playlist is NULL