Replaced CriticalSection implementation with boost::recursive_mutex. boost::recursive_mutex is more robust.
Added CustomAssert to include the hMailServer debug log when an an assert fails, to make troubleshooting failing test easier.
When reverting a VM snapshot, run ipconfig /renew to make sure that network access is available.