Terminate queue with term