correct behavior of pump to resolve promise when destination stream is finished