Prevent recursive exceptions