Implement error handling in labReturn.sh #12

Implement error handling in labReturn.sh #12