Bug: OS error- DB file sometimes not found while closing.
Fix: On OS error, try until the file exists.