Ticket #236 : add call flush only at curie to force printing of text output before abort in case of error.