Fixed server crash when the API was not responding.
This update handles API errors better. The server tries to download the GUI and caches it, but if this fails, the server would retry it on the main thread, causing the server to hang if the API still not responded.