reconnect while exception caught