Fix #217. Clear connectionTimer when a socket is closed.