Added -b option to quit when on battery power