Actually close the connection on disconnect, fixing #3.