synchronized block for tmanpartner + gradient convergence treshold+ cancel heartbeats