Close connection on disconnect