fixed hang on exit