But you take that risk moving to a no-tech area. The best solution is to not put yourself in a position you need to get out of.
And if that means the next Dubuque company needs to be offering million dollar salaries to engineers to get commit themselves out there - since there would be no other opportunities and you would be stuck, so you better have a massive nest egg after five years - then so be it.