Removing redundant close of client connection in test