How to handle dirty shutdowns?

Also, reinstall is usually not necessary, see for example this: Hard shutdown broke my system