Catch exception during hashrate capture
Fix a regression on Getwork