Fixed issue where jobs would continue being processed after agenda is explicitly stopped