Fix issue removing transaction log after db close.

There seems to a file resource leak in the constructor of StoreWAL. It
looks like it create a transactionlog to verify and replay the log. Then
it proceeds to create another transaction log of the same name without
closing the previous.