clean job and redirect error message