added exeption handling for summarizer