In case there was transaction running that might be deleted in future,
sleep time was calculated based on its runtime end when it should be
killed. Even it if was possible to be another transaction to be killed
earlier, that hasn't started yet.
Fix makes sure that we wait, at most, duration of shortest rule.