Clean up mining CReserveKey to prevent crash at shutdown

Fixes issue#2687
Merge pull request #2688 from gavinandresen/issue2687

Clean up mining CReserveKey to prevent crash at shutdown