Do not launch Shutdown in a new thread in case we are running the UI.
Do not launch Shutdown in a new thread in case we are running the UI.

This leads to the bitcoin core being shut down while the UI is accessing it, and generally results in a segmentation fault or crash. In case it is desirable to make it possible to shutdown the GUI from its RPC server, we'll need to implement a signal for it. For the mean time, this is a safe stopgap.

bmp02050/ReddcoinUpdates,coinkeeper/2015-06-22_18-46_reddcoin,reddink/reddcoin,bmp02050/ReddcoinUpdates,coinkeeper/2015-06-22_18-46_reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,Cannacoin-Project/Cannacoin,reddcoin-project/reddcoin,Cannacoin-Project/Cannacoin,joroob/reddcoin,reddink/reddcoin,reddcoin-project/reddcoin,reddcoin-project/reddcoin,joroob/reddcoin,ahmedbodi/poscoin,reddink/reddcoin,ahmedbodi/poscoin,coinkeeper/2015-06-22_19-10_cannacoin,joroob/reddcoin,Cannacoin-Project/Cannacoin,reddink/reddcoin,bmp02050/ReddcoinUpdates,reddcoin-project/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,Cannacoin-Project/Cannacoin,coinkeeper/2015-06-22_18-46_reddcoin,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,coinkeeper/2015-06-22_18-46_reddcoin,bmp02050/ReddcoinUpdates,coinkeeper/2015-06-22_18-46_reddcoin,bmp02050/ReddcoinUpdates,reddcoin-project/reddcoin,Cannacoin-Project/Cannacoin,ahmedbodi/poscoin,ahmedbodi/poscoin,reddink/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,ahmedbodi/poscoin,reddcoin-project/reddcoin,joroob/reddcoin