I could imagine a long rest in the abandoned outpost in the Underdark if you get there past the ogre. So long resting during the attack on the goblins seems realistic to me if you have that, though the camp would have to be updated.