Putty-auto-close may caused by server error like "
too many logins to user 'xxx' ".
You can fix it by these steps:
login to server as admin
modify the limitation or add new one line as :
@xxx hard maxlogins 100
and I'm sure you must have known what the xxx and 100 mean.