We have a free standing propane heater fireplace which is not vented. When the flame turns off due to reaching the desired temperature there is a loud clicking sound and then the pilot also shuts off. I need to wait approx 5 minutes, I hear a clicking again and then the pilot will light. Logic tells me there is maybe a safety switch or something similar. Any suggestions?