Christian Costa : quartz: Return properly when input is flushing or reaching end of stream.