Close all connections when DB is closed. Tests.