Dispose pagers and the journal even if flushing task threw an exception