[*] fix reconnecting on connection close