Unbind exception handler targets in nested functions