chore: safe invoke renderer destroy when its available