Before any damages can be awarded, a resident must have filed a written complaint that a town structure is “defective, out of repair, unsafe, dangerous, or obstructed” and there must have been “a failure or neglect within a reasonable time after giving such notice to repair or remove the defect, danger, or obstruction complained of.”