improve errors from bitcoinin
improve errors from bitcoinout
add uncaught exception handling
Merge branch 'master' into staging