Sorry raden just re-read your comment
My assumption was that ther was some kind of flow sensor
the logic was this :-
Pump runing
thermostat made, solenoid energised
thermal cut out Made (fail safe I assume)
just looking a reason for the burner to fire initially and then shut down