Closed the streams that were left un closed