#277 Improve type load exception handling.