Ethernet sheild stops connecting after an extended period

Then the code may be leaving connections open and running out of sockets.

Here is my client code. It downloads Google home every 10 seconds.

Note how it makes the request to the server, and then reads the response and closes the connection. You should be able to use that with your code. Extend the time to 10 minutes, and change the server and request to your twitter settings.