Add TaskBase.flush(Throwsable): To propagate optional reason for flush ; Deprecate flush()