Same if you try to close it when it is already closed. Needs to check if port is open before
Same if you try to close it when it is already closed.
Needs to check if port is open before