Does it hard crash, i.e whole process stops so could be used in a while loop, or does it hang with process still running?