Update for windows bug when unregister project cleanly