reconnect on EOF