def close_nothrow(resource):
    """
    When using this method it is promised that failing to close a given thing will not result in an exception.
    And simply we lead to the "leakage" of the resource
    """
    try:
        resource.close()
    except Exception:
        pass
