Handle Max retries exceeded message
Remove keepRunning flag