About the players walk speed

I made a small little speed boost (weaker than the potion effect and without the visual effect) by offering the player Keys.WALK_SPEED a value of 0.136 (boost speed by 36% if I’m not mistaken that the default speed is 0.1)
As the player disconnects I want to reset that, but it seems that this is too late and the speed does not get reset on the next connection.
Now I could reset the speed on the next connection to the server but that only works until the plugin is removed and players are left with modified walk speeds.
Is there any way to reset a keyed value for disconnected players?

Edit running on Minecraft: 1.12
SpongeAPI: 7.0.0-SNAPSHOT-339a5c70
SpongeVanilla: 1.12-7.0.0-BETA-306

could you clarify what event you are listening to when you were resetting the players speed back?

I’m using ClientConnectionEvent.Disconnect

darn it, I was going to suggest that… The only other way then changing the value when they join is modifying the raw data file itself, this is highly not recommended but its the only way i can think to get round the issue