I would be surprised if disconnecting and reconnecting the camera did not interfere with a program reading images. One must open the camera pretty much like a file. It is a state connection. Things like image size and format would not survive across module unloading. Which application are you using?