fixed to keep instance midi inputs/outputs while running the app.