Send close callback if the socket already closed