added keyboardInterrupt to delay to cleanly exit program