The legacies of coal mining in a former Scottish pit village is closed