There is a procedure to reset all COM ports so that they become available. The following webpage explains the procedure for windows XP and 7.

http://blog.cognitioninfotech.com/2009/01/how-to-clear-or-reset-com-port.html