When the O-type star goes supernova any planets that had formed would become free-floating due to the loss of stellar mass unless the natal kick of the resulting remnant pushes it in the same direction as an escaping planet.