Tie Application into the shutdown process.
Tie Application into the shutdown process.

Make sure the app waits with exit until all the threads owned by
Application are stopped.

zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,deadalnix/bitcoin,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,deadalnix/bitcoin,deadalnix/bitcoin,deadalnix/bitcoin,zander/bitcoinclassic,deadalnix/bitcoin,deadalnix/bitcoin,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic,bitcoinclassic/bitcoinclassic,bitcoinclassic/bitcoinclassic,zander/bitcoinclassic