FIX: Unit-test + mne.logger + mywin.close()

- Made the unit-tests compatible with the "with" format.
- Fixed issue of mne.logger propagating and appearing twice.
- Fixed mywin.close() issue