handle client quit