yaxar/irclogbotperl — comment on commit 3d63497d1b1145919eff886357451cf011ee64a4
File: hl.pl line 112
By marcusramberg:

you have to unregister your callbacks in finish, not just undef $g. You probably need to use unreg_cb