Thermocouple could be on its way out. If it is, your 5 minutes will gradually reduce down to a failure to light.
It is a common part replacement. You can buy 'universal' ones at B & Q or just Google- 'thermocouple for.........'
GB in Wales
March 2013