Changed the way current window closes

newWindow always opens a new window even if a project is already open
so turned back to old way but with a timeout to make sure there is time
to open the new window.
Prepare 1.7.6 release