Little know method that disposes the map, add it to the body.
function DisposeMap() //dispose map etc
{
if (map != null)
{
map.Dispose();
}
}
usage:
<body onload="GetMap();" onunload="DisposeMap();">
Something wrong with the code? Correct it at the Virtual Earth WIKI
Dispose the map on exit