catching an exception in mdbm maintenance function