added kill process when work is done