By chance are you using any kind of VPN or anything different about your connection? If a VPN reconnects, the script will continue to run, but no more data will come in due to the connection reset. Sounds a little bit like what you're seeing, but not sure.