This might be intentional for this to happen, but I have died multiple times to wolves that spawn ontop of me. I think there should be a certain radius away the player has to be for the hostile mobs to respawn