Fix job complete handling.