fixed issue in example where it was connecting on device selection for no reason (after 20 seconds any future requests would get SIGPIPE error)