add ResultWriter.hx allow us to write result in a file to keep the session alive