close client when removing it from the pool