A crowbar and other tools were used to pry open the elevator doors.

CHARLESTON, W.Va. (AP) — A malfunction caused West Virginia Gov. Jim Justice to become trapped in the elevator at the governor’s residence Thursday, his office said.

The Republican governor was stuck for about 30 minutes after the malfunction as mansion staff, state police and other state government personnel worked to open the elevator, Justice’s office said in a news release.

READ MORE: Pittsburgh Police Investigating After 11-Month-Old Girl's Death Caused By Fentanyl

A crowbar and other tools were used to pry open the elevator doors, the statement said.

“I appreciate those who helped out this afternoon and the expressions of concern I’ve received,” Justice said.

READ MORE: West Virginia Lawmaker Craig Blair Compares Federal COVID-19 Vaccine Rule To Nazi Germany

In a separate incident recently, First lady Cathy Justice also was trapped briefly in the elevator.

“I’m just fine, thankfully, and so is Cathy after having a similar problem a few weeks ago,” the governor said. “I’ve asked maintenance and safety personnel to thoroughly inspect the elevator to determine how to prevent this from happening again, and to conduct a full review of the safety and soundness of the entire structure.”

MORE NEWS: Biden Administration Says It Has Enough COVID-19 Vaccine Supply To Vaccinate 28 Million Kids Ages 5-11

(Copyright 2021 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.)