handle errors: destroy socket