move the loading error to ruby to avoid the double ruby initialization penalty