Always release the reference to the sock structure.