Capacitor input switch for safe battery connection