Adding exit on statement error to shell script