rdbms: avoid throwing exceptions in Database::close() on reconnect