Roger Federer promised his fans they had not seen the last of him after bringing the curtain down on his glittering care