If the bot account gets disconnected for any reason, it is saner to use the minecraft query API to check if the server is up instead of endlessly reconnecting to a server that is not up and risking further unexpected issues like the networking thread getting jammed.
If the bot account gets disconnected for any reason, it is saner to use the minecraft query API to check if the server is up instead of endlessly reconnecting to a server that is not up and risking further unexpected issues like the networking thread getting jammed.