Correct potential race condition when closing file handle

When autoclose is set, be sure to close the active file handle rather
than calling $self->fileHandle().  This avoids a potential race
condition that could leave a dangling file handle under certain
conditions.