Fix. Do not use ffi.gc to destroy socket object.