Historic Sudbury church prepares to close its doors