Lock model check when we terminate proxy thread