Use finally instead of just catch ConnectionClosed