Retiring Amesbury school leader fending off lawsuit