prevent ugly memory leak by remove connection on disconnect.