Bugfix: Don't close the current stream when a random files is closed.

Signed-off-by: Martin Raspaud <martin.raspaud@smhi.se>