closing windows kills pipe, resize work