am 0ab30723: Fix stale db handle crash

* commit '0ab307238107189b4717127b638e6c7dc9f988f1':
  Fix stale db handle crash