assign handler's guid late to ensure correct unbinding