remove unused file
fix hang at exit / crash at exit