Fixed file shutdown