cleanup
return errors on failing get_credentials
cleanup calling GDBase and GDAuth