RTR39AVD
U.S. President Barack Obama (L) participates in a taping of the Daily Show with Jon Stewart at the Comedy Central Studios in New York, Oct. 18, 2012. REUTERS

Many fans will be sorry to see The Daily Show with Jon Stewart come to an end in August, including President Barack Obama, who made his final appearance on the hit Comedy Central show Tuesday.

"I can't believe you're leaving before me," Obama told Stewart at the taping. "In fact, I'm issuing a new executive order that Jon Stewart cannot leave the show."

Stewart, who will film his last episode Aug. 6, replied to the president, "to me, this is a states' rights issue," taking advantage of his final opportunity to joke with him before he hands the show over to comedian Trevor Noah. But the episode focused instead on the day approaching when Obama will leave office. At the Tuesday afternoon taping, Obama reviewed his time as president.

"The VA works better than when I came into office. Government works better than when I came into office. The economy is better than when I came into office," Obama said. The president did not hold back in his seventh appearance on the show and talked candidly about a range of topics, including the Iran nuclear deal and Donald Trump's presidential candidacy.

Obama used the platform to encourage citizens to reach out to elected officials about negotiations with Iran. “If they are not hearing from citizens, then we end up making bad choices,” Obama said.

During the interview, Stewart asked Obama about his relationship with the media. "There are some that get on my nerves more than others," Obama said. "I think it gets distracted by shiny objects."

As Trump dominates the media cycle with controversial remarks, Obama quipped that the Republican party must be enjoying the primary race. “Anything that makes them look less crazy,” said Stewart.

Tuesday's show was the third time Obama had visited the show while in office. The interview will air on Comedy Central at 11 p.m. on Tuesday night.