Rescue internal error correctly