Fix for death of file io to call shutdown()