Substituted exit-statements from core_utils.sh with return-statements.