Safety and reliability in biogas plants