Pass error down to the function wrapping the code

This avoids a exception being thrown in case the failSilent
is not provided.