recover from error