On the apply_magnetic_field task, the waiting time for ramping the field is dealt with by an InstrJob (so that the measure can be stopped mid ramp).
Right now the instrument brutally restarts during the ramp. The connection to the instrument is restarted, but the task continue without failing (as if the target value had been reached) or rerunning the ramp.