Add error handling to labReturn.sh

#12 
Not tested on good test data.