add O_APPEND flag to log_file and call fc_post_run at end