Add yaml reconnect handler.