Query any phrase you want.

leave someone holding the bag- explanation

To remove the value from an article or arrangement and leave somebody holding the empty (or valueless) container.