spkpi-queued not turning off valves

Fixed bug in spkpi-queued which caused it to
not turn off the valves when the time expired.