apcups plugin: Close the socket when `connect' failes.