Adds exit code 3 to init script

Resolves Issue #5258
Should be applied to both master and 6-1-stable branches