Make marker $destroy more robust