Add exception capture in chart