Try to fix an issue where the apcupsd collector can crash the server process.