'Exit context
Close any open resource if we are called in context'

def __exit__(self, *args):

    for value in self._resources().values():
        try:
            value.close()
        except AttributeError:
            pass
    return True
