sw_engine: flush all processing data when clear() is requested.