Add exception handling to TabHead.