Police say a Pennsylvania man released from jail immediately stole a car from its parking lot.

Westmoreland County Prison officials said that moments after 36-year-old Thomas Lee Williams was released Tuesday evening, he attacked a woman in the parking lot, stole her car, and drove away with her 1-year-old grandson in the back seat.

The Tribune-Review reports Williams crashed about 15 minutes later and ran into the woods, where he was apprehended. Both the boy and his grandmother were taken to hospitals to be checked out.

Police say the Philadelphia man was back in custody Wednesday on $250,000 bail. He has been charged with kidnapping, robbery of a vehicle, aggravated assault, and reckless endangerment, according to court records.

Williams pleaded guilty in January 2017 to dealing drugs and was ordered released Tuesday.

No lawyer who could speak for Williams is listed in online court documents.