handle client failure