how to empty a com port

Hello

 

We are trying to connect a device on MC65, I guess all the Com Ports are busy. how to empty the Com ports so that We can use it for other device.