So I was recommended (on esp forum) to short pins GND and GPIO9 during unplugging/replugging. This has worked for me. Now it connects.