How to make the corresponding plug-in exit when vim exits?

  question, vim

The nerdtree plug-in will not close automatically, you need to enter: q to close.
If syntastic plug-in prompts that there is a problem with the syntax of the code, the plug-in will not close automatically when exiting. Please enter: Q to close.
How do I set them up so that they exit automatically?

: qa "Exit All Windows

Nerdtree has options to set automatic exit.

let NERDTreeQuitOnOpen=1