fix hang on exit