San Francisco Frontiers - Stock markets close out turbulent week with gains