Added reconnection logic debug