minor changes, stopExitsWhenMaxRuntimeReached was occasionally failing on my machine