Before the program would hang here. Now it exits gracefully.