fix statement closing issue on drillthrough and explain plan