added connection closing for paramiko