Added a Clear method. Don't assert that the shared_future is valid, just wait for it if it is (since we might be starting clean without any opened file).