Detect a “ctrl-c” notification or other reason to exit.
Wait until a control-c notification is received, using an appropriate runtime mechanism.