who wrote when all is said and done