fix reconnect and exit console command