Got it to write key and value pairs to CSV, but the server stops serving requests after 80 of them