Adult Swim’s “Childrens Hospital” is preparing to close its doors after its seventh season wraps next month.

Rob Corddry, the series co-creator and star known for his clown-painted face, said the decision came after months of deliberation.

“I had a feeling larva that transformed into a thought caterpillar, and, to continue the metaphor, then became a decision butterfly,” Corddry told Vulture, which first reported the news. “Talking with random people who understood the business and weren’t directly associated with ‘Childrens’ really helped me get my thoughts together.”

Corddry asserts that the seventh season of the offbeat comedy is the show’s best yet, and that influenced his decision to call it a wrap. The show’s final season bowed Jan. 22. “If I had been disappointed by this season, I would not have been able to stop doing it,” Corddry said. “This show, season after season, has been an exercise in perfecting this world.”

This is not the first time “Childrens Hospital” faced being taken off air. Season five presented a host of problems for Corddry: He was behind on writing scripts and faces stress so high that he said he almost ran himself into the ground. But alterations in the writing process, scheduling and production improved the situation.

Corddry’s two co-creators feel comfortable about season seven closing out the series as well.

“No TV show lasts forever, except for ‘Law & Order: SVU,’ ” said John Stern. “But the fun of making ‘Childrens Hospital’ will stay with us for years to come.” Fellow creator David Wain added: ” ‘Childrens Hospital’ has been a true joy from beginning to end.”

Corddry left the door open to “Childrens Hospital” returning in some form in the future, such as a half-hour special “here and there,” he said.