Fixed dumb bug where program closed before playback completed