try_write() is non-blocking and silently drops the CTraderClient when the lock is contended. This means a successfully connected broker client could be lost without any error. Changed to write().await which guarantees the client is stored. Made function async and updated the call site in main.rs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>