The Quest ends when the Quest's Goal has been accomplished and the heroes have left the scenario, or when the heroes have decided to leave without completing it or simply when all of them have been Knocked Out.
As soon as a hero steps on a starting square and declares that he wishes to leave, he will be considered outside the scenario. It is understood that all heroes have left the scenario when all of them have reached one of the starting squares.