def METHOD_NAME(self, **kwargs):
    """
    Closing old connections, as master may change in time of inactivity.
    """
    self.log.debug("close called")
    if self._client_read:
        # pylint: disable=protected-access
        for connection in self._client_read.connection_pool._available_connections:
            connection.disconnect()
        self.log.debug("client_read closed")
    if self._client_write:
        # pylint: disable=protected-access
        for connection in self._client_write.connection_pool._available_connections:
            connection.disconnect()
        self.log.debug("client_write closed")
    del self._client_write
    del self._client_read
    self._client_write = None
    self._client_read = None