Introduce safePut for Sftp