A few minor changes
Made exit check more efficient

Now instead of waiting 120s every time before checking if the UPS has power, the script
checks every second for 120s
Made dpkg-reconfigure stop showing useless error
Added s2both and pm-suspend-hybrid to list of cases where we care about swap