Close NERDtree if not needed