fix a regression, cleaning up connection on socket disconnect
partial tab complete support #34