Work on issue #64: Handle background thread exceptions when managing dmgs.