Add stop parameters in main-loop of server

I think it must be possible to stop the server (on ocsigenserver, we should able to do this). I don't think this solutions is perfect in the details (relative with common trunk and Async) but it's the better for me.