[FLINK-1202] Remove partial files when file outputs fail (or are canceled)

Builds upon #174