[#90] fixed crash when callback returns to a closed app