Fixed Linux file-stream (closed/dispose) bug.