Initialize timeInfo struct to avoid compiler warnings
Properly return from CloseSync()
Fix debug message