'Closes connections using given closer method and empties cache.
If simply calling the closer method is not adequate for closing
connections, clients should close connections themselves and use
:meth:`empty_cache` afterwards.'

def close_all(self, closer_method='close'):

    for conn in self._connections:
        getattr(conn, closer_method)()
    self.empty_cache()
    return self.current
