Fixed crash on exit and IntentLeak