Restart on IP change, better error messages
When the bot runs on embedded hardware (like routers) and the IP changes all connections (including UDP even though it's connectionless) stop working because source IP doesn't exist anymore. It's not an issue if the IP is static but in my case it changes on every reconnect on the ppp0
interface. When UDP write (send) results in an error the bot now restarts itself. It's easier and more robust than messing with every small network client running independently.
TLS handshake timeout increased to 2 minutes, on slow hardware the intitial crypto setup can take more than the default 10 seconds.
Some startup error messages are annotated now so it's easier to figure out what exactly went wrong.