Acting Erie County Supreme Court Justice John L. Michalski died by suicide Tuesday, days after most of his cases were transferred off his docket following the execution of search warrants at his home in Amherst, New York.