Fixing issue #26 - RandomAccessFile renamed and closed appropriately.