[bug] fix bug that application can't exit