Change to prevent exception when error connecting and sftp does not exist