Let Client implement AutoCloseable

...and rename stop() to close() so that instances can be used in try-with-resources.