Test cleanup, fixed corrupted charmap, added more log information on
before exit