fix bug that stop logreader twice