fixing file close bug in StreamEater