I have a script that runs on an infinite loop collecting data from an Arduino and adds this information to a json file. when I stop the program with cnt c that cuts the while lo