destroy socket