midiogre: Fix close button on windows + cleanup