fix debug crash at exit