Add atexit shutdown functions