JUNIPER-ONLY: Manually merge NMS-6564  sftp connections not closed on exceptions