Add error checking for unsupported OS types.