When freeing a socket, it MUST NOT have any live events