Sometimes gPhoto is unable to reset the USB port on the Raspberry Pi. I've found that the latest built of Wheezy and gPhoto2 is more stable. I've also started using a utility to reset the USB port before starting a capture series. I'm working on an update to the script that I think will address these issues.