This can happen when users close their terminal putty/SecureCRT windows without logging out of Junos or when their connection becomes idle and a firewall on the way resets the session.
There are two ways to address this:
1. activate keepalive for ssh in Junos: