Improved thread safety, Windows taskbar progress, and refresh

Improved thread safety
Improved Windows taskbar progress
Improved refresh
Increase ping timeout to 3000 ms