api: properly catch priv key generation failure (admin secret) #30