Replaced error with warn for non-zero exit codes