Fixes a bug relating to open and close jobs overlapping in execution.