Improve error messages, catch internal reflection-related exceptions