Sleep untill attachment exists

Signed-off-by: Vlad <vg@vladgh.com>