fixed araqne/issue#256. delete last state when logger is removed