Reset global cq state after destroying it

Fix #44