Sometimes json files are not deleted after a simulation runs. This is probably because of a socket closing and causing an exception which breaks the function before calling the function to delete the json. This exception should be caught and delete the json anyways, or periodically delete all jsons that were not created recently.