clean up midi port and release playing notes on destroy