Close IndexedDB connections

Fixed #7