Issue #808 Fix the FileOutput panic when HUP'ed