Issue IKTRE-87 by tuj: Removed Offline event listener when video ended or error