turn print stdout to log
return error when crash occur in aq-engine
fix compilation error