Revert "client: prevent double-close"

This reverts commit 832083065beb1f737c463b4dd4974e52ccf25e1c.