Avrdude: ser_open(): can't set com-state for "\\.\COM5" - Possible solution

Thanks for you time and attention. Yours is obviously the best solution, but I am still wondering why opening and closing the plotter solves the problem.