You hit the nail on the head. The stock is worthless in a transaction like this even if they had some IP. In a "normal" transaction, if a company fails like this it gets bought for a dollar and the new owners try to make something of it.
Any debt has to be honored but shareholders typically get diddly.