delete lsHandler object when closed is set