adding stop stream in stop method