return 1 instead of abort to avoid ressource leakes