Com ports fail after sketch upload

I am finding that it is happening more when the main serial port is being used by the program to print text. When I switched over to serial(1,2,3) it is happening less, but it is still going on.