A recently retired acting Manhattan Supreme Court justice and Court of Claims judge has agreed to never seek or accept state judicial office again after failing to perform his job for three years while struggling with “severe and pervasive” health problems.

The public stipulation by Daniel McCullough ends an investigation by the New York State Commission on Judicial Conduct. In October 2016, the commission began looking into an anonymous complaint that said McCullough, 65, had stopped performing his judicial duties in 2014 but remained on the bench, according to commission administrator Robert Tembeckjian. McCullough had been collecting a $193,000 annual salary.