This miner isn't exactly quick 'n' dirty anymore
Made checkcoin.py write coins to file when server connection failed