DALLAS — Dallas calmly marked the end of its Ebola crisis on Friday when the last of the 177 people who were being monitored for symptoms of the deadly virus were to be cleared at midnight.

Thirty-eight days after Thomas Eric Duncan was diagnosed with Ebola in a local hospital, officials expressed relief and resolve that they were prepared if anything similar – with its resulting panic, fear and constant media attention – ever happened again.

“It’s a time to reflect on the sacrifices of our hometown health care heroes and the city, county, and school district employees that worked so hard, along with our state and federal partners, to keep us safe during the Ebola crisis,” Dallas County Judge Clay Jenkins said.

Monitoring for the last person who came in contact with Duncan or the two nurses who contracted the virus will end at midnight Friday. About 50 people who returned to Texas from West African countries where the virus has killed thousands will remain under monitoring.

The White House said President Barack Obama spoke to officials Friday and thanked them for their leadership.

Duncan was diagnosed with Ebola on Sept. 30, sending officials scrambling and residents fearing the worst. He died on Oct. 8 at Texas Presbyterian Hospital. Duncan’s fiancee, Louise Troh, and three others were confined to their apartment where Duncan had been staying, before they were moved to private housing.

People panicked over the possible spread of the virus. Jenkins was criticized for entering the apartment to meet with Troh, despite public health experts saying it was safe.

Some people refused to shake hands with strangers, and others kept children home from schools where Troh’s children attended.

In the end, no one in the neighborhood was infected. The two people who contracted Ebola were nurses who treated Duncan; Nina Pham and Amber Vinson both have recovered.