close client on finally just to be on the safe side