A Livingston County town and village justice under investigation for judicial misconduct—including charges he engaged in ex parte contact and threatened to tape shut a defendant’s mouth—has resigned from both positions and agreed to never seek judicial office again, the state Commission on Judicial Conduct announced on Tuesday.

James LaPiana has served as a Mount Morris Town Court justice since 2006 and a Mount Morris Village Court justice since 2010, and the commission began its investigation of him this spring, it said in a statement.