chdir to root on session exit