How the state and federal governments run up against dying small towns