Com ports fail after sketch upload

The link in reply #7 says that any string containing "!!!" three exclamation marks causes some Megas to glitch up. Remove any !!! in your sketch, and see what happens.