ok,erase event only makes the event return when the player leaves the map.
i have xp,so this might not work,but copy the map(make a duplicate)and make it to where if you win the fight with the person,it teleports you to duplicate.the door will be closed.
try it.