delete wid while socket close