I think the shutdown hook for Tachyon can be way less complicated. You just need to recursively delete the application directory. All of these other functions related to the shutdown hook I think can be removed.