made program quit if comport mode was selected (temporary)