TransportSocketLibEvent: fix many leaks, cleanup in case of failure
TransportSocketLibEvent: fix many leaks, cleanup in case of failure

Change-Id: I95b53d060a5415082a3d8ca3ea097aea6f10a2d0

aldebaran/libqi,aldebaran/libqi-java,aldebaran/libqi-java,aldebaran/libqi,aldebaran/libqi,vbarbaresi/libqi,bsautron/libqi,aldebaran/libqi-java