stop BitcoinManager properly when quitting