at-unix: make open/close operations idempotent
cellular: make attach/detach operations idempotent