Avoiding connection reset

Hello,

When I am running AWS through Cygwin64, i notice that after 2 hours of computation in the AWS on Jupyter notebook, the connection just resets and my work is stopped.

Is there any way to avoid the connection to reset? In other words, how can I run AWS as long as I want?