Free a messenger, and close the socket if it's still open. Do not use "free ()" for variables for this type.