I have made a application using winforms to interface with a API I built on my raspberry PI, and using a loop to send API request and on the third loop it suddenly stops.