deploy with tgs_adapter closed on state change, if open