Improve error handling with blocked database opens
Fix sinon faketimer leak and restore setTimeout in LazyLoader mock