removed exception ConnectionClosed in test tools