tutdown: pass filename