I might try that read only trick.
To respond to John, I have a permanent set up in my studio. Things are connected and never get disconnected until the next change in my set up. MIDI port assignments do not retain themselves once the program is exited. I am using the Cakewalk UM-3G.
Port 1 in and out Roland XP-60 never disconnect it
Port 2 in and out Roland Sound Canvas A side
Port 3 out only to Roland Sound Canvas B side