handle some unexpected problem