Solved the issue with loosing track of the current device

Abandon the soft tracking of the current instrument for Agilent devices,
at the price of an additional SELECT? query.
Much safer now.
remove debug message