only load client and config if needed
Merge pull request #8 from mcwhittemore/clean-exit

Only load client and config if needed