Does the boiler perform normally on heating?
Does it make odd kettling noises as it approaches the point at which it shuts down on hot water?
Does the flame modulate down to a lower size as it gets close to switching off?
Depending on what else is happening it could be the hot water temp sensor, the water flow switch, a restricted heat exchanger or pipework in the boiler. Too many options without more info.
T.h.s
May 2007