A suspected Walmart shoplifter who hid from police in a dumpster may have chosen too good of a hiding spot.

At 6:00 AM Wednesday morning, police say they saw a man exiting through a side door of the Alliance Walmart with a shopping cart full of merchandise, according to local news station WKYC.

The suspect, identified as James Brienzo, saw the police and jumped into a dumpster to hide. When a garbage truck picked up the dumpster with Brienzo inside, he was able to call a friend for help.

Police then used a GPS system to track the man and locate the garbage truck. Police could not extricate the man from the garbage, so the truck was taken to the Alliance Recycling Center to empty the trash. Brienzo fell out of the truck with the garbage.

"He was in a lot of pain," said an Alliance Police Officer on the scene. "He had been compacted several times. He was just begging us to empty the truck."

Brienzo has been hospitalized and is in critical condition.

WATCH: