core: Fix duplication of close_notify_handler for gpgsm.