On Windows, wait before closing the Console in case of loading error