Can't open device COM4

I only have the problem some times. And, I am not sure what I do that fixes the problem. Com4 does disappear from both the ide and device manager when I disconnect the Uno board.