fixed the issue that jenkins-slave return wrong exit code.