SpaceX caps a record year with 18th successful launch of 2017