client graceful exit

- Fixes #7