libev_connection: reset internal state on reconnect