client: action queue, reconnect logic