svoid catchError(DoneFlag doneFlag, Runnable r) { try { r?.run(); } catch e { doneFlag.setError(e); } }