replayer: support reconnect on error