An I/O error happened which caused /Volumes/Install_Lion to be ejected? Is there something wrong with your disk? Otherwise, I would modify the script to output more progress or status information.
All good - Bypassing the dodgy USB hub worked, the script ran in its entirety. Sorry for the false alarm!