Prepend log more stable error catching