There are several components that have to work together for the fireplace to operate properly and since fireplaces operate on millivolts it doesn't take much interference to cause nuisances. Ideally a fireplace expert should evaluate/diagnose the system and determine what is causing the failure. It could be a number of parts not just a dirty pilot. I've seen components burn out in a couple of years because they were not adjusted right at install.