atexit hook is not needed in the xmldir router