When it comes to handing over gracefully, Nick Cannon’s no apprentice.

The former host of NBC’s “America’s Got Talent” recently left the reality TV show after claiming that the network had threatened to fire him over a joke he’d made that allegedly disparaged them.  The entertainer said he quit because he felt creatively restrained, but also had nice things to say about Tyra Banks, the former supermodel who will succeed him on the show. He tweeted praise for Banks, who revealed in a Twitter post that Cannon had also sent her a bouquet of congratulatory flowers.

Cannon is one of a handful of celebrities who have gone out of their way to make their successors feel welcome. For instance, Trevor Noah initially faced a rocky start when he took over from Jon Stewart as “The Daily Show,” especially after it emerged that the South African comedian had tweeted jokes that targeted Jews and transgender people. Stewart defended him, calling Noah “incredibly thoughtful, considerate and funny.” Likewise, British actor Sylvestor McCoy, who played Doctor Who in the late 1980s, praised his successor Peter Capaldi as “great…an accomplished actor.”

Trevor Noah with his Daily Show predecessor Jon Stewart (Brad Barket/Getty Images for Comedy Central)

Being genuine and kind when leaving a job is hardly the preserve of celebrities. “It’s the right thing to do,” says workplace etiquette expert Barbara Pachter, author of “The Communication Clinic.” “Many times, people leave but come back a few years later. Part of doing that successfully is you’ve a reputation of handling things well.”

Regardless of whether you’re moving on to a better job or being forced out, Pachter recommends making the transition easy for your replacement. She suggests making detailed notes for your successor, letting clients know that someone’s taking over your job and even letting them know they can reach out if they need a helping hand.

Pachter also cautions against following the example of President Donald Trump, who has fired barbs at Arnold Schwarzenegger, his successor on the Apprentice franchise. “Don’t go public on the internet,” she says. “And be nice to people on the way up, because you’ll see them on the way down.”