fix exit code of setup script.
Merge pull request #595 from continuuity/feature/setup-script-exit-code

fix exit code of setup script.