* done while synchronized since it may perform database removal or
* sync. Statements above are synchronized but this section must not
* be.
*/
if (dbClosed != null) {
dbClosed.handleClosed(doSyncDw, deleteTempDb);
}
if (errors != null) {
throw new IllegalStateException(errors.toString());
}