Fix call socket close