Cleanup contexts/queues upon object destruction