Fix Issue 47 - Crash while closing application

Wait for read loop to exit in destructor.  Needs to be tested.
increase default name mining difficulty to several minutes