Changed so the SHUTDOWN HOOK creates a empty file.