If the job is already ended don't print an error message since no real
error has happened.