fixed araqne/issue#72. fixed NPE at close()