More robust verification of command written in :host strategy

Makes :host strategy more robust by explicitly validating commands received by UIA. Adds retrys to write_command