Flamini hints at Milan exit