Properly save replay even when the game crashes (fixes #5610)
Merge pull request #5735 from pavlos256/always-save-replay

Properly save replay even when the game crashes (fixes #5610)