What to do when all seems lost.