GPG: try to avoid exception in exception handling