Exit with 0 if command line tools finish successfully
Fix non-existent state name bug