Add spec for a crash case under Windows.
Add clear method for handle map.