Migrate all temporary files into the session directory so that they are
also removed when the process exits.