Added file based shut down