refactoring out the handling of exceptions during a future.get()