Work it out!

On Thursday Demi Moore announced that she and Ashton Kutcher were ending their marriage, but the show had to go on for the Two and a Half Men star.

Kutcher, 33, looked thoughtful and tense on the set of Two and a Half Men Thursday. Wearing an unbuttoned flannel shirt, jeans and sandals, the actor gripped a Starbucks iced coffee as he glanced away from the camera. 

"I will forever cherish the time I spent with Demi," Kutcher wrote on his page Thursday. "Marriage is one of the most difficult things in the world and unfortunately sometimes they fail."

Moore, 49, expressed similar sadness about the end of her marriage. "It is with great sadness and a heavy heart that I have decided to end my six-year marriage to Ashton," her rep told Us Weekly in a statement. "As a woman, a mother and a wife there are certain values and vows that I hold sacred, and it is in this spirit that I have chosen to move forward with my life." 

VIDEO: Sara Leal talks about her one-night stand with Ashton

Kutcher infamously had a one-night stand with San Diego party girl Sara Leal, 22, in the wee hours of Sept. 24 of this year -- on Kutcher and Moore's wedding anniversary. (Us Weekly was first to interview Leal about her shocking night with Kutcher, who told partiers that night that he and Moore were already separated.)