host: Fix attach exit wait logic

Signed-off-by: Jonathan Rudenberg <jonathan@titanous.com>