Relocate the client instantiation into the try