Release incoming Netty messages for a socket when closed

Under certain test scenarios, such as text_xmlrpc, incoming messages
are not read and subsequently released before the socket is
closed. This was causing Netty to write warning messages about
detecting memory leaks. Now _realsocket.close() drains such messages,
and since __del__ ensures close, this should prevent such problems in
the future.