Some considerations on failure of solids and liquids