Fix close TeXProjectManager problem