This happens to sailing crews or military units occasionally. They generally just band together and try to survive. Sometimes they succeed and sometimes they don't.
Of course, soldiers and sailors are trained to work together under a predefined leadership, and expect to do so for a long period...