diff --git a/modules/net/dap_chain_node_cli_cmd.c b/modules/net/dap_chain_node_cli_cmd.c
index f0fdee81caeedae149f63a64c87fc82a83a7780f..3e221a308e74b2600fb07b2cb2322149bb1f0a39 100644
--- a/modules/net/dap_chain_node_cli_cmd.c
+++ b/modules/net/dap_chain_node_cli_cmd.c
@@ -1220,11 +1220,12 @@ int com_node(int a_argc, char ** a_argv, void **a_str_reply)
         if (res) {
             dap_cli_server_cmd_set_reply_text(a_str_reply, "No response from node");
             // clean client struct
-            dap_chain_node_client_close_mt(l_client);
+            dap_chain_node_client_close_unsafe(l_client);
             DAP_DELETE(node_info);
             return -8;
         }
         DAP_DELETE(node_info);
+        dap_chain_node_client_close_unsafe(l_client);
         dap_cli_server_cmd_set_reply_text(a_str_reply, "Connection established");
     } break;