shell: remove superfluous exit instructions