Connolly's killer gets 40 years to serve