Staff and Secured creditors get paid first, then everyone else. They will sell off the assets. Shareholders normally last to get paid unfortunately.