The nerdtree plug-in will not close automatically. You must enter: q to close it.
If the syntastic plug-in prompts that there is a problem with the code syntax, the plug-in will not automatically close when exiting. You must enter: q to close.
How to set it up so that they can exit automatically.
nerdtree has the option to set up automatic exit
Use :x to exit