Sometimes you can hand it over to some other OSS group too, like Apache.
But if there's a bunch of people using it, well, somebody needs to step up or at least offer to pay for ongoing maintenance if the original company abandons it. The hard part is finding people willing to do that work.