in reply to Continue when the client abort

Again without detail it is very hard to give any advice but it might be worth looking into daemons and independent child processes.

You might also be running a batch job in a CGI which would be better run as a daemon that processes a queue with the CGI pushing things onto that queue.

But please can we have more detail.

Hope it helps
UnderMine