Fixed exit code on stop