Better errors if interfaces cannot be accessed.