cleanup around exceptions
more exceptions cleanup
debug build mode that cleans up libxml2 memory
exception handling cleanup in map class