Pass client to lifecycle methods