Avoid exception when closing

Avoid exception when closing/disposing DBFWriter in case nothing was written or header was uninitialized.