Just close prefix tree on shutdown signal, #14.