close handle on disconnect