The prisons that propped up small US towns can hurt them badly when they shut down