Bugfix: Closing files after open in tructate.

Signed-off-by: Vijaykumar Koppad <vijaykumar.koppad@gmail.com>