adamwill pushed to hexchat (f30). "Apply fix suggested by ncoghlan for crash-on-exit bug (#1632039)"