Save the replay metadata block when quitting.

Followup to #5415.