client: allow closing connections
stress: first draft of rate-based testing
stress: refactor obviously duplicated code -- still ugly though