Unloads a previously loaded model from the server.
When the last model is unloaded (no more models remain), this function automatically closes the RPC connection, allowing the process to exit naturally without requiring manual cleanup.
function unloadModel(params: { clearStorage?: boolean; modelId: string }): Promise