moving the end_of_track global to an attribute on session wrapper.