Massimiliano Allegri believes all good things must come to an end, after his final game in charge of Juventus.