You’re saying the fan continues to operate momentarily after the thermostat shuts the heater down? Maybe that’s the reason for the third wire; it provides power to the fan after the two 240V legs are opened (that would mean there’s a neutral at the heater).