Extract afterAll checking from queueRunner