After closing a database, the writer thread will stop after 100 ms at the latest (instead of 1 second).