fix socket clear method on non existed current socket