finalize events