Not a difficult question to answer. Look around you to other countries and situations to understand what happens when jobs disappear.
You either run a welfare state model (Scandinavia, Switzerland) where you guarantee everyone a comfortable minimum lifestyle and support or you implode in civil war that removes the ruling class (Arab Spring nations)