[FLINK-1324] [runtime] Trailing data is cached before the local input strategies are closed.