to register exit function of logger_cleanup in logger.py