more mem cleanup catching, duplex_connection work