throw exception instead of assert if runtim could not be loaded