Make sure we write out events #2966

This is for recovery in DAGman.  If we need to enter recovery mode, then
we need to have the events in the DAG so that recovery can proceed.