title: Room attempt to re-open an already closed database
body: <p>When using Room from the Android Architecture Components, I received the following error when attempting to access the database using a Dagger component:</p>
  
  <pre><code>java.lang.IllegalStateException: attempt to re-open an already-closed object: SQLiteDatabase: (database path)
  </code></pre>
  
  <p>I was using Dagger version <code>2.11</code> and Room version <code>1.0.0-alpha7</code>. The error was reproducible on version <code>1.0.0-alpha5</code>.</p>
  
  <p>This error occurred on any attempt to access the database through a DAO after initialising the database and injecting it into my class.</p>