Shutdown hook removed - writeTail() unresolved