It might be OOM Killer killed sshd due to heavy load of your server while running 4 script in parallel. You can monitor your VM load and check whether the time you got kicked form ssh is when the load spike.
You could try: Restart the server, reconnect and check the log whether OOM Killer kick in.