Exit with 0 if command line tools finish successfully
Fix non-existent state name bug
Merge pull request #916 from basho/bugfix/cli-scripts

Fix CLI bugs, exit code and exceptions

Reviewed-by: kuenishi