Add safety net to yaml, as it's not a standard library. Nobody likes crashes.