At 123 years old, the building holds a lot of history — and its future reflects a broader challenge facing communities across Maine: how to preserve historic structures after congregations are gone.