NEW: set ignore_user_abort to true before flushing the buffer and triggering post-process listeners