try to prevent sftp exit failure