Memo.send get frozen in a loop of send

On Notes Client 8.5.1 PF5 , I am running the follwing Java Agent code to perform mass notes Send mail . Unfortunaltly it get frozen after a while (around 30 send) in the “memo.send” function :

import lotus.domino.*;

import java.text.SimpleDateFormat;

import java.util.*;

import java.io.*;

import java.io.PrintWriter;

public class JavaAgent extends AgentBase {

public static int rc=0;

File file;

String fileString;

static BufferedWriter lockfile;

static BufferedWriter logfile;

static BufferedWriter repfile;

Session s;

AgentContext ac;

Database db;

Document memo;

Log log;

String m = new String();

public void NotesMain() {

System.out.println(" Start send");

try {

s = getSession();

ac = s.getAgentContext();

db = ac.getCurrentDatabase();

log = s.createLog("TestSendMailInLoop in " + db.getTitle() + " on " + db.getServer());

log.openNotesLog(null, “alog4.ntf”);

log.logAction(“started”);

for (int x=0; x < 50; x++) {

memo = db.createDocument();

memo.replaceItemValue(“Form”, “Memo”);

memo.replaceItemValue(“Subject”, “send email in loop” + x);

memo.replaceItemValue (“SendTo”, “lolive@fr.ibm.com”);

memo.setSaveMessageOnSend(true);

boolean suc = memo.computeWithForm(true, false);

log.logAction("about to send memo " + memo.getItemValueString(“Subject”));

memo.send();

System.out.println(" send mail " + x + " done") ;

// memo.recycle();

memo=null;

}

log.logAction(“end”);

System.out.println(“Test send memo inloop ended”);

} catch (NotesException ne) {

ne.printStackTrace();

} catch (Exception e) {

e.printStackTrace();

}

}

}

Problem seem to be in notes2.exe.

Is any one to help me onn this problem?