apcups: Fix reconnect implementation