code: def close(self):
          
          if getattr(self, '_connection', None):
              logger.debug('Closing sqlite connection.')
              self._connection.close()
              self._connection = None
docs: Closes connection to sqlite database.