making analog_read cleanly exit on ctrl-c
na