Not to crash at the end of movie streaming