Re-added export errhandler method.