Fix problem where future.get() is called after finalize().