Reimplement exception catching whitelist