Wrapped index creation in try/catch