wrap creation in try/catch and emit warning