dirmngr: Fix error handling.