It is caused by the buffer size, when tufin initiates "get config". It displays only limited part of the full config. This creates a problem while tufin is trying to get the full configuration;
Connection error! Reason:
Connection closed by foreign host.
set console page 0
> set cli screen-length 0
This allows tufin to get the full configuration as Juniper does not limit its display with a limited buffer.