Call func wrapped by CapturePanic when client nil