How do I allow players to leave, save data, and verse not crash?

Whenever a player leaves the game my verse code crashes effectively ruining the game for everyone still in the game. This is a big problem for my game right now. Reference code below:

OnPlayerRemoved(OutPlayer:player):void=
if:
OutPlayer.IsActive
set Data[OutPlayer] = player_data{}

and the error I am getting is posted below:

An unrecoverable Verse runtime error occurred: Verse unrecoverable error: ErrRuntime_WeakMapInvalidKey: Invalid key used to access persistent var weak_map.

Truncated callstack follows:
task’ltimate?ice$UpdateValues(:player):Update (Unknown source) (Source: Unknown(0,0, 0,0))

If need be I can share more code surrounding it, but I believe I am missing something necessary to allow players to leave without the verse code crashing.

Whenever I change “Data[OutPlayer]” to ‘‘weak_map[OutPlayer]’’ OutPlayer is underlined and I can’t use it!