Next problem is how to release the comm port when the program exits?
I've tried using the Exit menu item and I've tried going into the Control Panel and closing the comm port but nothing works. The comm port stays open and locked.
If you try to restart the program, you get the spinning beach ball.
The only way to release the comm port is to reboot the computer.