checking for db inconsistency via journal detection (at close())