Add console UI and auto-reconnection strategy