safe variant of rb_require: if an exception happens then log it