Update main.cpp

pfork plonger problem reindexing problem!
Merge pull request #9 from Astrocoin/patch-1

Fix pfork plonger crashes