Fix wrong exit code