fix double-free of sap_sock (just use sap_close())