on client session terminate