Fix Issue-4

Close RandomAccessFile after we're finished with it.