Better error handling for failed indexedDB.open

when database connection fails, all requests fail from then on