1. fix: crash when app quit