make sure to return internal exit code.