Try protecting the close of client too