when quit app,release some resources