do not forget shutdown hook for file writer!

Change-Id: Ief746cec3cfa37207575449438eb58c6abd3c80e
private is better

Change-Id: Icceb27ec74a4fd952d039c25ef0575895f218783