Cleanup and fix operational tests.
Cleanup and fix operational tests.

This commit makes several changes to the operation tests as follows:

- Ensure the database is closed between each operational mode test as
  otherwise  the database is locked when trying to reopening it which
  makes it unusable
- Make the insert tests error after a single failure since every test
  afterwards is guaranteed to fail as well
- Remove some of the logging statements which cluttered up the failed test
  prints making it harder to see why a given test failed
- Make a couple of the log messages more descriptive

toddfries/btcd,cqswxj2013/btcd,ppcsuite/ppcd,1d4Nf6/btcd,cjepson/btcd,jrick/btcd,aakselrod/btcd,adiabat/btcd,Cleawing/btcd,stevenroose/btcd,CryptocurrencyCabal/htcd,DanielKrawisz/btcd,Roasbeef/btcd,jcmincke/dcrd,FactomProject/btcd,decred/dcrd,dan-da/btcd,hectorj/btcd,dan-da/btcd,soapboxsys/ombfullnode,sysbot/btcd,pkothbauer/btcd,hectorj/btcd,1d4Nf6/btcd,decred/dcrd,jimmysong/btcd,jongillham/btcd,Stash-Crypto/btcd,Stash-Crypto/btcd,btcsuitereleases/btcd,runeaune/btcd,danoctavian/btcd,ppcsuite/ppcd-old,tb00/btcd,jrick/btcd,Dirbaio/btcd,CryptocurrencyCabal/htcd,aakselrod/btcd,jcmincke/dcrd,Dirbaio/btcd,ppcsuite/ppcd,cjepson/btcd,Roasbeef/btcd,Cleawing/btcd,jimmysong/btcd,mathiasrw/btcd,btcsuite/btcd,stevenroose/btcd,jcmincke/dcrd,ltcsuite/ltcd,glv2/ppcd,toddfries/btcd,btcsuitereleases/btcd,soapboxsys/ombfullnode,jongillham/btcd,FactomProject/btcd,BitGo/prova,dajohi/btcd,davecgh/btcd,pkothbauer/btcd,DanielKrawisz/btcd,jrick/btcd,wallclockbuilder/btcd,dajohi/btcd,ppcsuite/ppcd-old,adiabat/btcd,BitGo/prova,davecgh/btcd,sysbot/btcd,dajohi/btcd,jrick/dcrd,runeaune/btcd,btcsuite/btcd,danoctavian/btcd,mathiasrw/btcd,jrick/dcrd,glv2/ppcd,tb00/btcd,ltcsuite/ltcd,wallclockbuilder/btcd,qchain/btcd,Dirbaio/btcd,cqswxj2013/btcd,qchain/btcd