fix infinite recursion in the session net.Listener adaptor + test