fixed hang on pipe closing