Added queue open,close. Issue: 1.Immediate close after close doesn't work.