handle peer disconnect and conn close