After you finish importing photos from your camera or other digital device, before you disconnect the cable, you should eject the camera or device.
To eject the device, Control-click the device’s name in the Finder sidebar, then click Unmount.