"The most important thing is the chemistry between players and staff," van Gaal told reporters on Friday.
"And when I have the feeling that the chemistry is there, I will always work to my utmost best.
"But when I have a single feeling that it is not like that, I'm the first coach that quits and I have proved that already with my former clubs and former jobs.
"Yes, of course because I always gave my clubs structure and I think structure is very important in a club, but also in a company, everywhere."
When asked about his relationship with his players, van Gaal said: "It's good."
Yet, as van Gaal pointed out, he has walked away from clubs of his own accord during his 24-year management career.
After falling out with a number of players, van Gaal left Barcelona during his second spell at the club and he quit his role as Ajax technical director following a power struggle with then manager Ronald Koeman.
Van Gaal also threatened to walk away from AZ Alkmaar in 2008 after finishing 11th in the Eredivisie, but was persuaded to stay on and led the club to the title the following year.
-AAP