catch flusherror also