retry exceptions that happen before fork (e.g. ENOMEM)