The adventure card instructs you to fight the enemy, which means you enter combat with it and resolve at least one round of combat. The spider is certainly allowed to run away, as are you in case you opt for retreating. Winning implies defeating the enemy, so, if the spider runs away you get nothing, I'm afraid