remove error_handler from stack when unsetting it

for gh-26