In case I didn't write 'the dam broke' routine!

Old programmers reference to not handling an unexpected situation. SOMETIMES my code goes astray. When it does I’d like to recover by loading something that works better. BUT when I’m using a Xiao that become a major PITA. I can not load new code cause the Xiao is still running the old and WILL NOT give up the com port for a reload. Not an issue with most other platforms.
After several rounds of recovery attempts I can usually proceed but those several rounds are an unneeded distraction that I’d rather avoid AND ARE NOT REQUIRED ON MOST OTHER PLATFORMS.
Can a change be made in Xiao that eliminates this phenomena ?