Adding exit code management for autoseg in rawdata-procedures and stderr terminal output addition in rawdata-autoseg