call clean_exit when application is exit