Use exit instead of -e option to check $?