That doesn't quite make sense; it implies that you manage to get it working till the next time that you start a new project.
Did it use to work before? Or is this the first time that you started with the Uno? Does COM4 disappear when from the IDE (and device manager) when you disconnect the board? If not, it's not the Uno.