finishes all activities at once