This method releases any open resources held by the file object
and resets all fields to defaults. Close is automatically called
when an object is destroyed but under certain circumstances - for
example if an object is to be returned to a pool - it may be
desirable to call it explicitly.