A .NET application intermittently experiences a hang