Fix: close file after write to stream
Fix: close file after write to stream

chdinh/mne-cpp,chdinh/mne-cpp,chdinh/mne-cpp,mne-tools/mne-cpp,LorenzE/mne-cpp,LorenzE/mne-cpp,mne-tools/mne-cpp,chdinh/mne-cpp,mne-tools/mne-cpp,chdinh/mne-cpp,chdinh/mne-cpp,mne-tools/mne-cpp,LorenzE/mne-cpp,mne-tools/mne-cpp,LorenzE/mne-cpp,mne-tools/mne-cpp