Mains and system protection