[=] small refactory
[+] properly disconnect and reconnect