erc: add unwind-protect to notification hook