Wait for device if connection is interrupted