Jim Carrey is opening up about grabbing the perfect shot for his book cover.

The Canadian icon, 58, joined Howard Stern for a virtual interview on SiriusXM’s “The Howard Stern Show” to talk all about his new memoir Memoirs And Misinformation.

But to Stern, the cover is quite interesting. According to Carrey, the photo for the cover was taken after reading an alert on his phone that read: “Ballistic missile threat inbound to Hawaii. Seek immediate Shelter. This is not a drill.”

RELATED: Jim Carrey Says Ex Renée Zellweger ‘Was Very Special To Me’ After Describing Her As ‘The Love Of My Life’

“My assistant Linda, who at the time was warning me that we had 10 mins to live, and she was clutching the phone so tightly that she actually accidentally took a screenshot,” Carrey explained. “And this is my face staring into the abyss. This is my face after I’ve been told I have 10 minutes to live.”

And the photo just fit with the title, Memoirs And Misinformation, says Carrey, And so I just thought that’s just the perfect misinformation… like, look what I went through because of misinformation.”

Of the alert all Carrey had to say was, “It’s more like, ‘Oh, that’s weird. Funny way for it to end.'”

Carrey gave fans a rare glimpse into his life through the new memoir, even showing off his most prized possession – Charlie Chaplin’s famous cane.

Carrey then spoke about the fake missile alert on Thursday’s “Tonight Show”.

He told Jimmy Fallon, “It was completely real to us,” saying he tried to get off the island with his daughter, but he couldn’t.

Carrey explained how he said his goodbyes and went to the beach to spend his final moments looking at the ocean.

“At that point I started going, ‘OK what can I do with this last moment of time.’ I just decided to go through a list of gratitudes and honest to God I just could not stop thinking of wonderful things that have happened to me and blessings I’ve had,” Carrey shared. “It was lovely. And I got to a point of grace at about two minutes to spare when I found out it wasn’t actually happening. All I was planning to do was closing my eyes and be thankful because it’s been a good ride.”

When the star then found out the missile alert was fake, he joked, “I got p**sed off and heads rolled.”

Memoirs And Misinformation is available now.