Make sure all Streams are closed

CE-428