Made the _file object persistent

Now, the nxfile property returns the original file handle, not a new
one.