Brian Hamilton retires after 40 years of service