flush event buffer whenever we set the status