Federer provides ominous warning as season draws to a close