midiogre: kill app when click on close button + fix memory leaks
analyze-test: cleanup