refresh on ui thread & close application quitely