fix: close fd of socket