fixed araqne/issue#543. fixed NPE at Sort.onClose() when sort command is not started