Added error checking to labReturn.sh