AC Milan coach Massimiliano Allegri has paid tribute to his side for sticking together despite a forgettable season.