print out filename on close.