Prototype of auto-reconnect functionality

PoC, totally untested yet
It's too hacky. Can we just disable `select` method?