try to recover from exception