add support for job termination