Closed stream issue solved.