when in dev mode, h2 in memory database is not closed if all connections are closed